<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<HTML>
	<HEAD>
		<TITLE>Untitled Page</TITLE>
		<META http-equiv=Content-Type content="text/html; charset=utf-8">
		<link href="../css/public.css" rel="stylesheet" style="text/css">
		<META content="MSHTML 6.00.2900.5848" name=GENERATOR>
		<script type="text/javascript">
		 function choseProduct(proId,proNum){
			var productId=document.getElementById(proId).value;
			var productNumber= document.getElementById(proNum).value;
			location.href="ask_choseProduct.action?proId="+productId+"&productNumber="+productNumber;
		}
	</script>
</HEAD>
	<BODY
		style="BACKGROUND-POSITION-Y: -120px; BACKGROUND-IMAGE: url(../images/background.gif); BACKGROUND-REPEAT: repeat-x">
	<label>
	</label>
    <SCRIPT type=text/javascript>
var theForm = document.forms['aspnetForm'];
if (!theForm) {
    theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
function addlist(productId){
  var num = document.getElementById("num"+productId).value; 
  location.href="ask_addlist?productid="+productId+"&num="+num; 
}
function turnpage(){
 var curPage=document.getElementById("curPage").value;
 if(isNaN(curPage)){
  widow.location.href="order_searchAskAll.action?pb.pageon=1";
 }
 else{
  widow.location.href="order_searchAskAll.action?pb.pageon="+curPage;
 }
}
</SCRIPT>
<SCRIPT src="EmployeeMgr.files/WebResource.axd" type=text/javascript>
</SCRIPT>
<SCRIPT src="EmployeeMgr.files/ScriptResource.axd" type=text/javascript>
</SCRIPT>
<SCRIPT src="/EmployeeMgr.files/ScriptResource(1).axd" type=text/javascript>
</SCRIPT>
	<div id="layer4">
	  <form name="form1" method="post" action="order_searchAskAll.action">
	    <TABLE height="107%" cellSpacing=0 cellPadding=0 width="100%" border=0>
		<tbody>
            <TR style="BACKGROUND-IMAGE: url(../images/bg_header.gif); BACKGROUND-REPEAT: repeat-x" height=47>
              <TD width=15 height="47">
              <SPAN
								style="FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hl.gif); WIDTH: 15px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px"> </SPAN> </TD>
              <TD width="1280"><SPAN
								style="FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hl2.gif); WIDTH: 15px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px"> </SPAN> <SPAN
								style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hb.gif); PADDING-BOTTOM: 10px; COLOR: white; PADDING-TOP: 10px; BACKGROUND-REPEAT: repeat-x; HEIGHT: 47px; TEXT-ALIGN: center; 0 px: "> <a href="ask_add.jsp">添加询价单</a> </SPAN><SPAN
								style="FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hr.gif); WIDTH: 60px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px"></SPAN> </TD>
              <TD
							style="BACKGROUND-POSITION: 50% bottom; BACKGROUND-IMAGE: url(../images/main_rc.gif)"
							width=1></TD>
            </TR>
            <TR>
              <TD style="BACKGROUND-IMAGE: url(../images/main_ls.gif)">&nbsp;</TD>
              <TD style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; COLOR: #566984; PADDING-TOP: 10px; BACKGROUND-COLOR: white" vAlign=top align="left">
		<div>
               <table width="100%" border="0">
              <tr>
                <td width="3%">编号</td>
                <td width="17%"><label>
                  <input name="inquiry.sn" type="text" class="textbox">
                </label></td>
                <td width="7%">询价人</td>
                <td width="17%" align="center"><input name="inquiry.user.name" type="text" class="textbox"></td>
                <td width="7%">询价单位</td>
                <td width="18%"><input name="inquiry.user.enterprise.name" type="text" class="textbox"></td>
                <td width="6%">询价日期</td>
                <td width="17%"><input name="textfield34" type="text" class="textbox"></td>
                <td width="8%" align="center"><label>
                  <input name="Submit4" type="submit" class="buttonBlue" value="查询">
                </label></td>
              </tr>
            </table>
               <p class="STYLE1">询价单列表</p>
               <s:form action="ask_choseProduct.action" method="post">
               <TABLE class=gridView11
									style="WIDTH: 100%;" cellSpacing=0
									 border=1 >
                <TR>
                  <TH width="49" class=gridViewHeader style="WIDTH: 50px" scope=col>&nbsp; </TH>
                  <TH width="198" class=gridViewHeader scope=col>询价单编号</TH>
                  <TH width="87" class=gridViewHeader scope=col>询价人</TH>
                  <TH width="243" class=gridViewHeader scope=col>询价单位</TH>
                  <TH width="180" class=gridViewHeader scope=col>询价日期</TH>
                  <TH width="143" class=gridViewHeader scope=col>总价格（万元）</TH>
                  <TH width="174" class=gridViewHeader scope=col>备注</TH>
                  <TH width="152" class=gridViewHeader scope=col>操作</TH>
                </TR>
                <s:iterator value="pb.list">  
                          	
                   	<TR>
                     <TD class=gridViewItem style="WIDTH: 50px"><IMG src="EmployeeMgr.files/bg_users.gif"> </TD>
                  
                     <TD class=gridViewItem><s:property value="sn"/></TD>
                     <TD class=gridViewItem><s:property value="user.name"/></TD>
                     <TD class=gridViewItem><s:property value="user.enterprise.name"/></TD>
                     <TD class=gridViewItem><s:date name="inquirytime" format="yyyy-MM-dd"/></TD>
                   	 <TD class=gridViewItem><s:property value="totalprice"/></TD>
                   	 <TD class=gridViewItem><s:property value="remarks"/></TD>
                   	 <TD class=gridViewItem><label>
                       <input type="button" class="buttonBlue" value="导入" onClick="location.href='order_findAskById.action?inquiryId=<s:property value="id"/>'" >
                     </label></TD>
                   </TR>                            
                 </s:iterator>
                <tr>
                  <td colspan="9" align="right" class=gridViewHeader> 
                                                总共有${pb.totalitem}条记录
                                                每页${pb.pagesize}条记录
                                                当前为第${pb.pageon}页/
                                                总共有${pb.totalpage}页
                 <a href="order_searchAskAll.action?pb.pageon=1">第一页</a> 
                <a href="order_searchAskAll.action?pb.pageon=${pb.prep}">上一页</a> 
                 <a href="order_searchAskAll.action?pb.pageon=${pb.nextp}">下一页</a> 
                 <a href="order_searchAskAll.action?pb.pageon=${pb.totalpage}">最后一页</a> 转到第
                 <input  type="text" class="textbox" id="text"/>页
                    <input  type="submit" id="curpage" class=textbox onClick="javascript:turnpage()" value="Go"/>                  </td>
                </tr>
            </TABLE>
           </s:form>
			   </div>
          </TD>
              <TD style="BACKGROUND-IMAGE: url(../images/main_rs.gif)"></TD>
            </TR>
            <TR
						style="BACKGROUND-IMAGE: url(../images/main_fs.gif); BACKGROUND-REPEAT: repeat-x"
						height=10>
              <TD style="BACKGROUND-IMAGE: url(../images/main_lf.gif)"></TD>
              <TD style="BACKGROUND-IMAGE: url(../images/main_fs.gif)"></TD>
              <TD style="BACKGROUND-IMAGE: url(../images/main_rf.gif)"></TD>
            </TR>
          </TBODY>
        </TABLE>
      </form>
    </DIV>					  
	</BODY>
</HTML>
